package com.iwhalecloud.bss.kite.cucc.service.traceLog;

import com.iwhalecloud.bss.kite.client.api.cust.query.IQueryCustService;
import com.iwhalecloud.bss.kite.client.api.traceLog.IKiteErrorLogService;
import com.iwhalecloud.bss.kite.client.dto.ExceptionLogDto;
import com.iwhalecloud.bss.kite.cucc.common.mq.ExceptionLogProducer;
import com.iwhalecloud.bss.kite.cucc.common.mq.RefreshCacheLogProducer;
import com.iwhalecloud.bss.kite.dataservice.api.IQueryOfferService;
import com.iwhalecloud.bss.kite.dataservice.mapper.spec.OfferDetailMapper;
import com.iwhalecloud.bss.kite.dataservice.mapper.spec.OfferRelMapper;
import com.ztesoft.bss.common.util.ContextUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class KiteErrorLogServiceImpl implements IKiteErrorLogService {
    @Autowired
    private ExceptionLogProducer logProducer;
    @Override
    public int saveErrorLog(ExceptionLogDto dto) {
        dto.setOperatorCode(ContextUtil.getSimpleLoginInfo().getStaffCode());
        logProducer.sendMessageAsync(dto);
        return 0;
    }
}
